import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'normalize.css'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import './style/index.scss'
import './style/style.scss'
import './style/customElementStyle.scss'
import '@/style/newStyle.scss'
import searchBox from '@/components/searchBox.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import "./utils/openDialog";
import "@/assets/icons/iconfont/iconfont.js";
import 'virtual:svg-icons-register'


// 获取根路径
window.rootUrl = process.env.NODE_ENV == "development" ? "/#/" : "/";

const app = createApp(App)
import SvgIcon from "./components/svgIcon.vue";

app.use(ElementPlus, {
  locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component("SvgIcon", SvgIcon);
app.component("searchBox", searchBox);
app.use(router)

app.mount('#app')
